import pathlib
import sys

from PyQt5.QtWidgets import QApplication

if __name__ == '__main__':
    # 获取当前文件所在的目录
    root = pathlib.Path(__file__).parent
    sys.path.append(str(root))
    sys.path.append(str(root / 'assets'))
    sys.path.append(str(root / 'yolov5'))
    from designer.main_widget_c import Window

    app = QApplication(sys.argv)
    win = Window()
    sys.exit(app.exec_())
